import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';

const CORS_CONFIG = {
  origin: "*",
  optionsSuccessStatus: 200,
}

async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  app.enableCors(CORS_CONFIG);
  await app.listen(3000);
}
bootstrap();
